package com.lxd.entity;

import lombok.Builder;
import lombok.Data;

/**
 * @author liuxiaoding
 * @data 2019/7/2
 */
@Data
@Builder
public class ChatMsg {
    private String name;
    /** 0默认 403退出登录 */
    private Integer code;
    private String content;
    private String fromName;
    private String toName;
    /** 消息类型 0登录 1单聊 2群聊 */
    private Integer msgType;

    public ChatMsg(){
    }
    public ChatMsg(String name,Integer code,String content,String fromName,String toName,Integer msgType){
        this.name=name;
        this.code=code;
        this.content=content;
        this.fromName=fromName;
        this.toName=toName;
        this.msgType=msgType;
    }
}
